home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
3D Images
/
3D Images.iso
/
programs
/
amiga
/
rayshade
/
inetray
/
inetray.start_svc.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-01-12
|
1KB
|
56 lines
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#include <stdio.h>
#include <rpc/rpc.h>
#include <syslog.h>
#include "inetray.start.h"
#ifndef ITIMER_REAL
#include <sys/time.h> /* for A/UX */
#endif
void
starter_1(rqstp, transp)
struct svc_req *rqstp;
register SVCXPRT *transp;
{
union {
int fill;
} argument;
char *result;
bool_t (*xdr_argument)(), (*xdr_result)();
char *(*local)();
switch (rqstp->rq_proc) {
case NULLPROC:
(void) svc_sendreply(transp, xdr_void, (char *)NULL);
return;
case START:
xdr_argument = xdr_void;
xdr_result = xdr_void;
local = (char *(*)()) start_1;
break;
default:
svcerr_noproc(transp);
return;
}
bzero((char *)&argument, sizeof(argument));
if (!svc_getargs(transp, xdr_argument, &argument)) {
svcerr_decode(transp);
return;
}
result = (*local)(&argument, rqstp);
if (result != NULL && !svc_sendreply(transp, xdr_result, result)) {
svcerr_systemerr(transp);
}
if (!svc_freeargs(transp, xdr_argument, &argument)) {
syslog(LOG_ERR, "unable to free arguments");
exit(1);
}
return;
}